//package com.xiangxiangjd.config.shiro;
//
//import com.alibaba.fastjson.JSONObject;
//import com.xiangxiangjd.config.token.JwtUtils;
//import io.jsonwebtoken.Claims;
//import org.apache.shiro.web.servlet.AdviceFilter;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.HttpSession;
//import java.io.PrintWriter;
//import java.util.ArrayList;
//import java.util.List;
//
//
//@Configuration
//public class ShiroInterceptor extends AdviceFilter {
//
//
//
//    @Autowired
//    private JwtUtils jwtUtils;
//
//
//    @Override
//    protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception {
//
//
//        return true;
//    }
//
//
//    @Override
//    public void afterCompletion(ServletRequest request, ServletResponse response, Exception exception) throws Exception {
//
////        String localAddr = request.getLocalAddr();
////        System.out.println("localAddr:"+localAddr);
////        int localPort = request.getLocalPort();
////        System.out.println("localPort:"+localPort);
////
////
////                HttpServletRequest request1 =(HttpServletRequest)request;
////
////        String requestURI = request1.getRequestURI();
////
////        System.out.println("requestURI:"+requestURI);
////        StringBuffer stringBuffer=request1.getRequestURL();
////
////        System.out.println("stringBuffer:"+stringBuffer);
////        String queryString = request1.getQueryString();
////
////        System.out.println("queryString:"+queryString);
////
////
//
//
////        String contextPath = ((HttpServletRequest) request).getContextPath();
//
////        System.out.println("contextPath:"+contextPath);
//
//    }
//}
